<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{BEESCRM:$title}</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="/assets/base/news/css/common.css">
    <link rel="stylesheet" href="/assets/base/news/css/jquery.fullPage.css">
    <link rel="stylesheet" href="/assets/base/news/css/fonts.css">
    <link rel="stylesheet" href="/assets/base/news/css/index.css">
    <link rel="stylesheet" href="/assets/base/news/css/college.css">
    <link rel="stylesheet" href="/assets/base/news/css/businessinfo.css">
    <link rel="stylesheet" href="/assets/base/news/css/headlines.css">
    <link rel="stylesheet" href="/assets/base/news/css/brother.css">
    <link rel="stylesheet" href="/assets/base/news/css/weekly.css">
    <link rel="stylesheet" href="/assets/base/news/css/education.css">
    <link rel="stylesheet" href="/assets/base/news/css/service.css">
    <link rel="stylesheet" href="/assets/base/news/css/research.css">
    <link rel="stylesheet" href="/assets/base/news/css/partner.css">
    <link rel="stylesheet" href="/assets/base/news/css/newsdetail.css">
    <link rel="stylesheet" href="/assets/base/news/css/brotherdetail.css">
    <link rel="stylesheet" href="/assets/base/news/css/circles.css">
    <link rel="stylesheet" href="/assets/base/news/css/circlesattend.css">
    <link rel="stylesheet" href="/assets/base/news/css/collegenews.css">
    <link rel="stylesheet" href="/assets/base/news/css/auth.css">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript">
	wx.config({
		debug: false,
		appId: "{BEESCRM:$appid}",
		timestamp: "{BEESCRM:$timestamp}",
		nonceStr: "{BEESCRM:$noncestr}",
		signature: "{BEESCRM:$signature}",
		jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','hideOptionMenu','scanQRCode']
	});
	wx.ready(function(){
		var url = '{BEESCRM:$share_url}';
		var imgUrl = '{BEESCRM:$share_image}';
		var title = '{BEESCRM:$share_title}';
		var desc = '{BEESCRM:$share_desc}';
		var shareConfig = {
				title: title,
				desc: desc,
				link: url, 
				imgUrl: imgUrl, 
				success: function () { 
					share();
				},
			};
		wx.onMenuShareTimeline(shareConfig);
		wx.onMenuShareAppMessage(shareConfig);
	});
	
	var news_id='{BEESCRM:$news_id}';
	var origin='{BEESCRM:$origin}';
	var website_id = "{BEESCRM:$website_id}";
	var share_callback_url="/base/news/share/website_id/"+website_id+"/news_id/"+news_id+"/origin/"+origin;

	function share(){
		$.ajax({
			type:'get',
			dataType:'json',
			url:share_callback_url,
			success:function(data){
				/* if(data.url){
					location.href=data.url;
				} */
			}
		});
	}  
</script>
</head>
